package com.xian.yoga.entity;

import java.io.Serializable;
import java.util.Date;

/**
 * owner
 * @author 
 */
public class Owner implements Serializable {
    private Integer ownerId;

    private Integer usersId;

    private Integer studioId;

    private String ownerName;

    private String ownerSex;

    private String cownerTel;

    private Date ownerBirthday;

    private String ownerImg;

    private String ownerCard;

    private Date ownerRegdate;

    private String ownerIsopen;

    private String ownerStatus;

    private static final long serialVersionUID = 1L;

    public Integer getOwnerId() {
        return ownerId;
    }

    public void setOwnerId(Integer ownerId) {
        this.ownerId = ownerId;
    }

    public Integer getUsersId() {
        return usersId;
    }

    public void setUsersId(Integer usersId) {
        this.usersId = usersId;
    }

    public Integer getStudioId() {
        return studioId;
    }

    public void setStudioId(Integer studioId) {
        this.studioId = studioId;
    }

    public String getOwnerName() {
        return ownerName;
    }

    public void setOwnerName(String ownerName) {
        this.ownerName = ownerName;
    }

    public String getOwnerSex() {
        return ownerSex;
    }

    public void setOwnerSex(String ownerSex) {
        this.ownerSex = ownerSex;
    }

    public String getCownerTel() {
        return cownerTel;
    }

    public void setCownerTel(String cownerTel) {
        this.cownerTel = cownerTel;
    }

    public Date getOwnerBirthday() {
        return ownerBirthday;
    }

    public void setOwnerBirthday(Date ownerBirthday) {
        this.ownerBirthday = ownerBirthday;
    }

    public String getOwnerImg() {
        return ownerImg;
    }

    public void setOwnerImg(String ownerImg) {
        this.ownerImg = ownerImg;
    }

    public String getOwnerCard() {
        return ownerCard;
    }

    public void setOwnerCard(String ownerCard) {
        this.ownerCard = ownerCard;
    }

    public Date getOwnerRegdate() {
        return ownerRegdate;
    }

    public void setOwnerRegdate(Date ownerRegdate) {
        this.ownerRegdate = ownerRegdate;
    }

    public String getOwnerIsopen() {
        return ownerIsopen;
    }

    public void setOwnerIsopen(String ownerIsopen) {
        this.ownerIsopen = ownerIsopen;
    }

    public String getOwnerStatus() {
        return ownerStatus;
    }

    public void setOwnerStatus(String ownerStatus) {
        this.ownerStatus = ownerStatus;
    }

    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        Owner other = (Owner) that;
        return (this.getOwnerId() == null ? other.getOwnerId() == null : this.getOwnerId().equals(other.getOwnerId()))
            && (this.getUsersId() == null ? other.getUsersId() == null : this.getUsersId().equals(other.getUsersId()))
            && (this.getStudioId() == null ? other.getStudioId() == null : this.getStudioId().equals(other.getStudioId()))
            && (this.getOwnerName() == null ? other.getOwnerName() == null : this.getOwnerName().equals(other.getOwnerName()))
            && (this.getOwnerSex() == null ? other.getOwnerSex() == null : this.getOwnerSex().equals(other.getOwnerSex()))
            && (this.getCownerTel() == null ? other.getCownerTel() == null : this.getCownerTel().equals(other.getCownerTel()))
            && (this.getOwnerBirthday() == null ? other.getOwnerBirthday() == null : this.getOwnerBirthday().equals(other.getOwnerBirthday()))
            && (this.getOwnerImg() == null ? other.getOwnerImg() == null : this.getOwnerImg().equals(other.getOwnerImg()))
            && (this.getOwnerCard() == null ? other.getOwnerCard() == null : this.getOwnerCard().equals(other.getOwnerCard()))
            && (this.getOwnerRegdate() == null ? other.getOwnerRegdate() == null : this.getOwnerRegdate().equals(other.getOwnerRegdate()))
            && (this.getOwnerIsopen() == null ? other.getOwnerIsopen() == null : this.getOwnerIsopen().equals(other.getOwnerIsopen()))
            && (this.getOwnerStatus() == null ? other.getOwnerStatus() == null : this.getOwnerStatus().equals(other.getOwnerStatus()));
    }

    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((getOwnerId() == null) ? 0 : getOwnerId().hashCode());
        result = prime * result + ((getUsersId() == null) ? 0 : getUsersId().hashCode());
        result = prime * result + ((getStudioId() == null) ? 0 : getStudioId().hashCode());
        result = prime * result + ((getOwnerName() == null) ? 0 : getOwnerName().hashCode());
        result = prime * result + ((getOwnerSex() == null) ? 0 : getOwnerSex().hashCode());
        result = prime * result + ((getCownerTel() == null) ? 0 : getCownerTel().hashCode());
        result = prime * result + ((getOwnerBirthday() == null) ? 0 : getOwnerBirthday().hashCode());
        result = prime * result + ((getOwnerImg() == null) ? 0 : getOwnerImg().hashCode());
        result = prime * result + ((getOwnerCard() == null) ? 0 : getOwnerCard().hashCode());
        result = prime * result + ((getOwnerRegdate() == null) ? 0 : getOwnerRegdate().hashCode());
        result = prime * result + ((getOwnerIsopen() == null) ? 0 : getOwnerIsopen().hashCode());
        result = prime * result + ((getOwnerStatus() == null) ? 0 : getOwnerStatus().hashCode());
        return result;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", ownerId=").append(ownerId);
        sb.append(", usersId=").append(usersId);
        sb.append(", studioId=").append(studioId);
        sb.append(", ownerName=").append(ownerName);
        sb.append(", ownerSex=").append(ownerSex);
        sb.append(", cownerTel=").append(cownerTel);
        sb.append(", ownerBirthday=").append(ownerBirthday);
        sb.append(", ownerImg=").append(ownerImg);
        sb.append(", ownerCard=").append(ownerCard);
        sb.append(", ownerRegdate=").append(ownerRegdate);
        sb.append(", ownerIsopen=").append(ownerIsopen);
        sb.append(", ownerStatus=").append(ownerStatus);
        sb.append(", serialVersionUID=").append(serialVersionUID);
        sb.append("]");
        return sb.toString();
    }
}